package com.zachary.es.dtd;

import com.sdyc.ndetl.model.PostStore;

import java.io.Serializable;
import java.util.Date;

/**
 * <pre>
 * Created with IntelliJ IDEA.
 * User: zachary.
 * Date: 2014/7/16
 * Time: 14:06
 * PC：windows'IDEA in company <br>
 * </pre>
 *
 * @author zachary.
 */
public class Post implements Serializable {

    private String postUrn;
    private Date createdAt;
    private String entitySectionName;
    private Long entitySectionUrn;
    private String postTitle;
    private String postUrl;
    private String sourceClientName;
    private Long sourceClientUrn;
    private String userScreenName;
    private String userUrn;

    public Post(PostStore postStore) {
        this.postUrn = postStore.getPostUrn();
        this.createdAt = postStore.getCreatedAt();
        this.entitySectionName = postStore.getEntitySectionName();
        this.entitySectionUrn = postStore.getEntitySectionUrn();
        this.postTitle = postStore.getPostTitle();
        this.postUrl = postStore.getPostUrl();
        this.sourceClientName = postStore.getSourceClientName();
        this.sourceClientUrn = postStore.getSourceClientUrn();
        this.userScreenName = postStore.getUserScreenName();
        this.userUrn = postStore.getUserUrn();


    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public String getEntitySectionName() {
        return entitySectionName;
    }

    public void setEntitySectionName(String entitySectionName) {
        this.entitySectionName = entitySectionName;
    }

    public Long getEntitySectionUrn() {
        return entitySectionUrn;
    }

    public void setEntitySectionUrn(Long entitySectionUrn) {
        this.entitySectionUrn = entitySectionUrn;
    }

    public String getPostTitle() {
        return postTitle;
    }

    public void setPostTitle(String postTitle) {
        this.postTitle = postTitle;
    }

    public String getPostUrl() {
        return postUrl;
    }

    public void setPostUrl(String postUrl) {
        this.postUrl = postUrl;
    }

    public String getPostUrn() {
        return postUrn;
    }

    public void setPostUrn(String postUrn) {
        this.postUrn = postUrn;
    }

    public String getSourceClientName() {
        return sourceClientName;
    }

    public void setSourceClientName(String sourceClientName) {
        this.sourceClientName = sourceClientName;
    }

    public Long getSourceClientUrn() {
        return sourceClientUrn;
    }

    public void setSourceClientUrn(Long sourceClientUrn) {
        this.sourceClientUrn = sourceClientUrn;
    }

    public String getUserScreenName() {
        return userScreenName;
    }

    public void setUserScreenName(String userScreenName) {
        this.userScreenName = userScreenName;
    }

    public String getUserUrn() {
        return userUrn;
    }

    public void setUserUrn(String userUrn) {
        this.userUrn = userUrn;
    }
}
